﻿#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
#endregion  

namespace Ramparts
{
    class Cannon : GameComponent
    {        
        public Cannonball cannonBall = null;
        public bool available = true;

        public Cannon(Vector2 position, SceneManager inSceneManager, bool useCamera)
        {
            base.sceneManager = inSceneManager;
            base.position = position;
            base.useCamera = useCamera;

            // place the cannonball at the cannon position
            cannonBall = new Cannonball(
                "Content\\Battle\\cannonbase",
                base.position,
                base.sceneManager,
                base.useCamera);               
        }
    }
}
